// Write your cade below:


module.exports =function main(number)  {
    let Readline=require("readline-sync");
    let input=Readline.question("please input your number:");
    let arr1=input.split("");
    let arr2=number.split("");
    let count1=0;
    let count2=0;
    let result;

    for(let i of arr2)
    {
       if(arr1.includes(i))
       {
           count2++;
       } 
    }
    if(count2==0)
    {
        count1=0;

    }
    else{
        for(let i in arr1)
        {
            if(arr1[i]==arr2[i])
            {
                count1++;
                count2--;

                

            }
        }

    }
 result=  count1+"A"+count2+"B"
return result;



    
}